/*
 *  View3d.java
 *
 *  Project:		RiFidi Designer - A Virtualization tool for 3D RFID environments
 *  http://www.rifidi.org
 *  http://rifidi.sourceforge.net
 *  Copyright:	    Pramari LLC and the Rifidi Project
 *  License:		Lesser GNU Public License (LGPL)
 *  http://www.opensource.org/licenses/lgpl-license.html
 */
package org.monklypse.jme2.demoapp.views;

import org.eclipse.swt.SWT;
import org.eclipse.swt.layout.GridData;
import org.eclipse.swt.layout.GridLayout;
import org.eclipse.swt.widgets.Composite;
import org.eclipse.ui.part.ViewPart;
import org.monklypse.core.JMEComposite;

/**
 * 
 * 
 * @author Jochen Mader - jochen@pramari.com - Aug 27, 2008
 * @author Andreas Blochberger
 * 
 */
public class View3d extends ViewPart {
	public static final String ID = "org.monklypse.jme2.demoapp.view3d";

	public View3d() {
	}

	/*
	 * (non-Javadoc)
	 * 
	 * @see
	 * org.eclipse.ui.part.WorkbenchPart#createPartControl(org.eclipse.swt.widgets
	 * .Composite)
	 */
	@Override
	public void createPartControl(Composite parent) {
		Composite container = new Composite(parent, SWT.None);
		container.setLayout(new GridLayout(2, true));
		for (int i = 0; i < 4; ++i) {
			JMEComposite composite = new JMEComposite(container,
					new DemoImplementor());
			composite.setLayoutData(new GridData(GridData.FILL_BOTH));
		}
	}

	@Override
	public void setFocus() {
	}
}
